class ResultJson{
    constructor(flag,msg,data=[]){
        this.code = flag? 200 : 400;
        this.status = flag ? "success" : "fail";
        this.msg = msg;
        this.data = data;
    }
}

module.exports = ResultJson;